﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAF.Common;

namespace Domain
{
    [Serializable]
    public class Note : IID
    {
        public Note()
        {
        }

        public Note(Guid id)
        {
            // Id = CreatedOn.ToString("yyyyMMddHHmmssfff") 备选Id方案
            Id = id;
            CreatedOn = DateTime.Now;
            ModifiedOn = null;
            Content = string.Empty;
            IsComplete = false;
        }

        public Guid Id { get; private set; }

        public DateTime CreatedOn { get; set; }

        public DateTime? ModifiedOn { get; set; }

        public string Content { get; set; }

        public bool IsComplete { get; set; }
    }
}
